<div class="wbsiteSetting form">

	<div class="row">
		<div class="col-md-12">
			<div class="page-header">
				<h1><?php __('Admin Edit Blog Setting'); ?></h1>
			</div>
		</div>
	</div>



	<div class="row">
    <?php echo $this->element('admin-menu'); ?>
		<div class="col-md-9">
			<?php 
					if(isset($websiteSetting['WebsiteSetting']['setting_text'])) $this->set('title_for_layout', $websiteSetting['WebsiteSetting']['setting_text']);
					if($websiteSetting['WebsiteSetting']['setting']=='theme_logo')
					$file_type	=	'file';
					else
					$file_type	=	'textarea';
					
					if($websiteSetting['WebsiteSetting']['setting']=='theme_logo')
			echo $this->Html->image('/images/'.$websiteSetting['WebsiteSetting']['value']);

			echo $this->Form->create('WebsiteSetting', array('role' => 'form','type'=>'file')); ?>

				<div class="form-group">
							<?php 
					$options = array(
                    'type' => $file_type,
                    'label' => $websiteSetting['WebsiteSetting']['setting_text'],
                    'placeholder' => $websiteSetting['WebsiteSetting']['setting_text'],
                    'class' => 'form-control',
                );
                if (!empty($websiteSetting['WebsiteSetting']['tip'])) {
                    $options['after'] = '<p class="tip">'.h($websiteSetting['WebsiteSetting']['tip']).'</p>';
                }
                echo $this->Form->input('value', $options);?>
                    </div>
				<div class="form-group">
					<?php echo $this->Form->submit(__('Submit'), array('class' => 'btn btn-default')); ?>
				</div>

			<?php echo $this->Form->end() ?>

		</div><!-- end col md 12 -->
	</div><!-- end row -->
</div>
